package com.hotel.system.mapper;

import com.hotel.system.domain.hotel.RoomType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 岗位信息 数据层
 * 
 * @author hotel
 */
public interface RoomTypeMapper {

    public List<RoomType> selectRoomTypeList(RoomType roomType);

    public int insertRoomType(RoomType roomType);

    public RoomType selectRoomTypeId(String id);

    public int updateRoomType(RoomType roomType);

    public int updateRoomTypeStatus(String ids);

    /**
     * 校验房间类型名称唯一
     * @param roomTypeName
     * @param deptId
     * @return
     */
    RoomType checkRoomTypeNameUnique(@Param(value = "roomTypeName") String roomTypeName, @Param(value = "deptId") Long deptId);

    /**
     * 查询所有的房间类型
     * @return
     */
    List<RoomType> selectRoomTypeAll();


}
